package deng.hibernate.test.select;

import java.math.BigDecimal;
import java.util.Date;

public class Simple {

	private Long id;
	
	private String name;
	
	private Double rate;
	
	private BigDecimal price;

	private int count;
	
	private Date createdDate;
	
	@Override
	public String toString() {
		return getClass().getName() + "[id=" + id + ",name=" + name + " ...]";
	}
	
	public void sample() {
		name = "foo";
		rate = 0.1;
		price = new BigDecimal(99.00);
		count = 8;
		createdDate = new Date();
		
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getRate() {
		return rate;
	}

	public void setRate(Double rate) {
		this.rate = rate;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	
}
